package com.woniu.account.dao;

import com.woniu.account.dto.venueAdmin.VenueAdminDto;
import com.woniu.account.model.VenueAdmin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.account.param.venueAccount.VenueAdminLoadParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 杜岷芫
 * @since 2024年07月11日
 */
@Mapper
public interface VenueAdminDao extends BaseMapper<VenueAdmin> {

    ArrayList<VenueAdminDto> load(VenueAdminLoadParam param);

    @Select("select venue_admin_nickname where venue_admin_id =#{id}")
    String findVenueAdminNicknameById(Integer id);

    List<VenueAdminDto> getVenueCoachsById(@Param("roleId") Integer roleId,@Param("venueId") Integer venueId);

    List<VenueAdminDto> getByIds(@Param("ids") Set<Integer> ids);
}
